
package com.bestcem.xm.common.core.enums;

/**
 * 返回给前端的错误状态枚举
 *
 * @author xuan.yang <xuan.yang@idiaoyan.com>
 * @version v2.3
 * @date 2021/9/2 17:04
 */
public enum  ResultErrorEnum {
    /**
     * 参数不合法
     */
    ILLEGAL_ARGUMENT(4,"参数不合法");
    /**
     * 成员变量
     */
    private int code;
    private String msg;

    ResultErrorEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
